# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=cyanrip
pkgver=0.8.1
pkgrel=2
pkgdesc="Bule-ish CD ripper"
url="https://github.com/cyanreg/cyanrip"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	curl-dev
	ffmpeg-dev
	libcdio-dev
	libcdio-paranoia-dev
	libmusicbrainz-dev
	meson
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/cyanreg/cyanrip/archive/refs/tags/v$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
0c2e5027ef6fc0fbc5a3d648a818ab96b214291d28f0fb66b7bba6f7c688056f84725ff479ab4c36b1e2868aea365de8ab50edd3bc014ca27346ae358b5ca78e  cyanrip-0.8.1.tar.gz
"
